static void init_upStart()
 {
     Serial.begin(38400);
  
  pinMode(datapin, OUTPUT);
  pinMode(latchpin, OUTPUT);
  pinMode(enablepin, OUTPUT);
  pinMode(clockpin, OUTPUT);
  digitalWrite(latchpin, LOW);
  digitalWrite(enablepin, LOW);
  SPCR = (1<<SPE)|(1<<MSTR)|(0<<SPR1)|(0<<SPR0);
  irrecv.enableIRIn(); // Start the receiver
  pinMode(Ir_pin, INPUT);
  pinMode(Power , OUTPUT);
  digitalWrite(Power, HIGH);
  randomSeed(analogRead(0));


  
int rate = 30;

  for (int i = 0; i < NumLEDs; i++) {
 
   LEDChannels[i][0] = 1023;
   LEDChannels[i][1] = 0;
   LEDChannels[i][2] = 0;
   WriteLEDArray();
   delay(rate);
 }

  for (int i = 0; i < NumLEDs; i++) {
 
   LEDChannels[i][0] = 1023;
   LEDChannels[i][1] = 1023;
   LEDChannels[i][2] = 0;
   WriteLEDArray();
   delay(rate);
  }

  for (int i = 0; i < NumLEDs; i++) {
 
   LEDChannels[i][0] = 0;
   LEDChannels[i][1] = 1023;
   LEDChannels[i][2] = 0;
   WriteLEDArray();
   delay(rate);
 } 
 
  for (int i = 0; i < NumLEDs; i++) {
 
   LEDChannels[i][0] = 0;
   LEDChannels[i][1] = 1023;
   LEDChannels[i][2] = 1023;
   WriteLEDArray();
   delay(rate);
 }

  for (int i = 0; i < NumLEDs; i++) {
 
   LEDChannels[i][0] = 0;
   LEDChannels[i][1] = 0;
   LEDChannels[i][2] = 1023;
   WriteLEDArray();
   delay(rate);
  }

  for (int i = 0; i < NumLEDs; i++) {
 
   LEDChannels[i][0] = 1023;
   LEDChannels[i][1] = 0;
   LEDChannels[i][2] = 1023;
   WriteLEDArray();
   delay(rate);
 }
 
  for (int i = 0; i < NumLEDs; i++) {
 
   LEDChannels[i][0] = 1023;
   LEDChannels[i][1] = 1023;
   LEDChannels[i][2] = 1023;
   WriteLEDArray();
   delay(rate);
  }

  for (int i = 0; i < NumLEDs; i++) {
 
   LEDChannels[i][0] = 0;
   LEDChannels[i][1] = 0;
   LEDChannels[i][2] = 0;
 }
}

